import {Result} from "@/api/Result";

export interface QueryParams {
    name?: string;

    /* */
    idCard?: string;

    /* */
    type?: string;

    /* */
    createTime?: Record<string, unknown>;

    /* */
    updateTime?: Record<string, unknown>;

    pageNum?: number;

    /* */
    pageSize?: number;
}

interface QueryResData {
    memberId: number;

    /* */
    name: string;

    /* */
    idCard: string;

    /* */
    type: string;

    /* */
    createTime: Record<string, unknown>;

    /* */
    updateTime: Record<string, unknown>;
}

export interface SaveParams {
    /* */
    name: string;

    /* */
    idCard: string;

    /* */
    type: string;


}

export type QueryResArray = QueryResData[];

export interface QueryRes extends Result<QueryResArray> {
    data: QueryResArray;
    /* */
    total: number;
}

export type SaveRes = Result<null>;